using System;
using UnityEngine;

public class TAddAction : TAction
{
	
	public TAddAction (TObject o) : base (o){}
	
	public override void undo(){
		GhostsHandler.Instance.destroyGhost(tobj.Id);
	}
	
	public override void redo(){
		GPObject gpo = (GPObject)(tobj);
		GhostsHandler.Instance.createGhost(gpo);
	}
	
	public override string ToString ()
	{
		return string.Format ("[TAddAction] : {0}", tobj.ToString());
	}
}

